<div class="layui-card">
    <div class="layui-card-body">
        <div>
            <form action=""  class="layui-form">
                <div class="layui-form-item">
                    <div class="layui-input-inline">
                        <input type="text" name="keywords" value="{$search.keywords}" class="layui-input" placeholder="订单编号|用户名">
                    </div>
                    <div class="layui-input-inline">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">搜索</button>
                    </div>
                </div>
            </form>

            <form action="{:url('admin/order.index/delorder')}" method="post" class="layui-form delete-form" id="cp-form">
                <div class="layui-btn-group">
                    <button type="submit" class="layui-btn layui-btn-xs layui-btn-danger ">
                        <i class="layui-icon">&#xe640;</i>
                        删除
                    </button>
                </div>
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th width="10">
                            <input type="checkbox" class="layui-input"  lay-skin="primary" lay-filter="select-all">
                        </th>
                        <th width="120">用户名</th>
                        <th>订单名称</th>
                        <th>订单编号</th>
                        <th>价格</th>
                        <th >状态</th>
                        <th>创建时间</th>
                        <!--<th >操作</th>-->
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="orderList" id='v'}
                    <tr>
                        <td align="center" valign="middle">
                            <input type="checkbox" name="idList[]" class="layui-input" lay-skin="primary" value="{$v.id}">
                        </td>
                        <td>{$v.username|default=$v.nickname}</td>
                        <td>{$v.order_name}</td>
                        <td>{$v.order_number}</td>
                        <td>{$v.price|default=0}/元</td>
                        <td>
                            {switch name='v.status'}
                            {case value='0'} <span class="layui-badge">订单未完成</span> {/case}
                            {case value='1'} <span class="layui-badge layui-bg-green">订单完成</span> {/case}
                            {/switch}
                        </td>
                        <td>{$v.update_time|date="Y-m-d H:i:s"}</td>
                        <!--<td></td>-->
                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </form>
            {$orderList|raw}
        </div>
    </div>
</div>